﻿CREATE PROCEDURE [dbo].[televisors_insert]
    @name nvarchar(256),
    @type int=0,
    @diagonal decimal(3,1),
    @treeD bit,
    @releaseDate datetime,
    @avatar nvarchar(max)=null,
    @magazineId int = 0

AS
    INSERT INTO Televisors
    (
        Name,
        Type,
        Diagonal,
        ThreeD,
        ReleaseDate,
        Avatar,
        MagazineId
    )
    VALUES
    (
        @name,
        @type,
        @diagonal,
        @treeD,
        @releaseDate,
        @avatar,
        @magazineId
    )
RETURN 0
